var sub_num=1;
hui('#add_sub').click(function (e) {
    sub_num=sub_num+1;
    $('#add_sub_box').before("<div class=\"hui-form-items\">\n" +
        "            <div class=\"hui-form-items-title\">小节名</div>\n" +
        "            <input type=\"text\" class=\"hui-input sub_name\" placeholder=\"请输入小节名\" name=\"sub_name"+sub_num+"\">\n" +
        "        </div>");
    e.preventDefault();
},false);
hui('#add_section').click(function () {
    console.log($('#add_form').serialize());
});